<div class="appraise">
    <div class="nav">
        <div class="nav-li focus">订单评价</div>
    </div>
    <hr />

    <div class="info">
        <div class="title">订单号：{{user.appraise._id}}</div>
        {{#each user.appraise.info.goods_info}}
        <div class="goodsitem">
            <div class="goodsinfo">
                <div class="item">
                    <img bind-src="{{goods.preview_img_url}}?imageView/1/w/130" class="goodsimg">
                </div>
                <div class="item">
                    <div>
                        <a class="name" bind-href="goods-details.html?id={{goods._id}}" target="_blank">{{goods.goods_name}}</a>
                    </div>
                    <div>价格：
                        <span class="price">￥{{goods.price+"/"+goods.unit}}</span>
                        购买数量：{{num+goods.unit}}
                    </div>
                    {{#if $Top.user.appraise.info.state==$Top.config.ACH_STATE.ol交易完成||$Top.user.appraise.info.state==$Top.config.ACH_STATE.交易完成||$Top.user.appraise.info.state==$Top.config.ACH_STATE.face交易完成}}
                    <!--    <div>是否匿名评价：
                        <android:switch bind-input="{{'_eval_isAny'}}" bind-value="{{_eval_isAny}}"></android:switch>{{_eval_isAny?"是，匿名":"否，实名"}}</div> -->
                    <div class="appraiseinfo">输入评分（0~10）：
                        <input maxlength="3" max="10" min="0" class="star" type="num" bind-input="{{'_eval_star_num'}}" bind-value="{{_eval_star_num}}" event-blur="{{'$Top.$Event.eval.checkStar'}}" />
                        <div>填写评价（150字以内）：</div>
                        <textarea event-blur="{{'$Event.checkText'}}" maxlength="150" bind-input="{{'_eval_content'}}" bind-value="{{_eval_content}}"></textarea>
                    </div>
                    {{#else}}
                    <!-- <div>
                        <h5>是否匿名评价：</h5>
                        <p style="text-indent:2em;">{{eval.comment.isAny?"是，匿名":"否，实名"}}</p>
                    </div> -->
                    <div class="appraiseinfo">
                        <div>评分（0~10）： {{eval.star_num}}分
                        </div>
                        <div>评价内容：
                            <div>{{eval.comment.content}}</div>
                        </div>
                        <div>评价时间： {{#Time eval.comment.create_time,"YYYY-MM-DD HH:mm:ss"}}
                        </div>
                    </div>
                    {{/if}}
                </div>
            </div>
        </div>
        {{/each}}
    </div>
    {{#if user.appraise.info.state==config.ACH_STATE.ol交易完成||user.appraise.info.state==config.ACH_STATE.交易完成||user.appraise.info.state==config.ACH_STATE.face交易完成}}
    <button event-click="{{'$Event.eval.submitEval'}}">提交评价</button>
    {{/if}}
</div>
